package com.hz.springboot02.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @ClassName ResultLayUi
 * @Description layUi框架公共返回类
 * @Author Administrator
 * @Date 2024/12/3 17:43
 */
@Data
@AllArgsConstructor
public class ResultLayUi {
    private Integer code;
    private String msg;
    private Integer count;
    private Object data;
    public static ResultLayUi success(Integer count,Object data){
        return new ResultLayUi(Constant.USER_COUNT,"请求成功",count,data);
    }
}
